package com.heima.apis.user;

import com.heima.model.user.pojos.ApUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("leadnews-user")
public interface IUserClient {


    /**
     * 根据ID查询用户
     * @param id
     * @return
     */
    @GetMapping("/api/v1/one/{id}")
    public ApUser findOne(@PathVariable("id") Integer id);
}
